package com.boyiis.sell.service.impl;

import com.boyiis.sell.model.entity.Seller;
import com.boyiis.sell.repository.SellerRepository;
import com.boyiis.sell.service.SellerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
@Transactional
@Slf4j
public class SellerServiceImpl implements SellerService {
    @Autowired
    private SellerRepository sellerRepo;

    @Override
    public Seller findByOpenid(String openid) {
        Seller seller = sellerRepo.findByOpenid(openid);
        return seller;
    }
}
